package cn.gson.school.entity.jiuye;

import java.sql.Timestamp;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 简历评价表
 * 
 * @author 华少
 *
 */
@Entity
@Table(name = "tb_jy_resume_evaluate")
public class ResumeEvaluateEntity {
	/**
	 * resume_evaluate_id 简历评价id resume_id 简历id userinfo_id 用户详情id
	 * resume_evaluate_content 评价内容 resume_evaluate_date 评价时间
	 */
	@Id
	@Column(name = "resume_evaluate_id")
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Long resumeEvaluateId;

	@ManyToOne
	@JoinColumn(name = "resume_id")
	private ResumeEntity resumeId;// 简历

	@Column(name = "userinfo_id")
	private Integer userinfoId;

	@Column(name = "resume_evaluate_content")
	private String resumeEvaluateContent;

	@Column(name = "resume_evaluate_date")
	@JsonFormat(pattern="yyyy-MM-ddHH:mm:ss")
	private Date resumeEvaluateDate;

	public Long getResumeEvaluateId() {
		return resumeEvaluateId;
	}

	public void setResumeEvaluateId(Long resumeEvaluateId) {
		this.resumeEvaluateId = resumeEvaluateId;
	}

	public ResumeEntity getResumeId() {
		return resumeId;
	}

	public void setResumeId(ResumeEntity resumeId) {
		this.resumeId = resumeId;
	}

	public Integer getUserinfoId() {
		return userinfoId;
	}

	public void setUserinfoId(Integer userinfoId) {
		this.userinfoId = userinfoId;
	}

	public String getResumeEvaluateContent() {
		return resumeEvaluateContent;
	}

	public void setResumeEvaluateContent(String resumeEvaluateContent) {
		this.resumeEvaluateContent = resumeEvaluateContent;
	}

	public Date getResumeEvaluateDate() {
		return resumeEvaluateDate;
	}

	public void setResumeEvaluateDate(Date resumeEvaluateDate) {
		this.resumeEvaluateDate = resumeEvaluateDate;
	}

	@Override
	public String toString() {
		return "ResumeEvaluateEntity [resumeEvaluateId=" + resumeEvaluateId + ", resumeId=" + resumeId + ", userinfoId="
				+ userinfoId + ", resumeEvaluateContent=" + resumeEvaluateContent + ", resumeEvaluateDate="
				+ resumeEvaluateDate + "]";
	}

}
